/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package share;

import java.io.IOException;

/**
 *
 * @author mire
 */
public interface Communicator {
    boolean open() throws IOException;
    boolean close() throws IOException;
    
    Object readObject() throws IOException, ClassNotFoundException;
    void writeObject(Object o) throws IOException;
    
    String readString() throws IOException;
    void writeString(String s) throws IOException;
    
    int readInt() throws IOException;
    void writeInt(int i) throws IOException;
    
    
}
